package com.ruoyi.miniapp.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 体重监测历史数据对象 t_mini_history
 *
 * @author ruoyi
 * @date 2025-06-11
 */
@Data
public class TMiniHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录id */
    private String id;

    /** 微信id */
    @Excel(name = "微信id")
    private String openid;

    /** 关联用户 */
    @Excel(name = "关联用户")
    private Long userId;

    /** bmi指数 */
    @Excel(name = "bmi指数")
    private String bmi;

    /** 身高 */
    @Excel(name = "身高")
    private Long height;

    /** 体重 */
    @Excel(name = "体重")
    private BigDecimal weight;

    /** 记录日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;
}
